package com.lagou.service.impl;

import com.lagou.service.MehtodService;
import org.apache.dubbo.config.annotation.Service;

@Service
public class MehtodServiceImpl implements MehtodService {

    @Override
    public String methodA() throws InterruptedException {
        long sleep = (long)Math.random()*100;
        Thread.sleep(sleep);
        return "OK";
    }

    @Override
    public String methodB() throws InterruptedException {
        long sleep = (long)Math.random()*100;
        Thread.sleep(sleep);
        return "OK";
    }

    @Override
    public String methodC() throws InterruptedException {
        long sleep = (long)Math.random()*100;
        Thread.sleep(sleep);
        return "OK";
    }
}
